{include file=member.header.html}
<style type="text/css">
    #refund-list {width:965px;}
    #refund-list a{ text-decoration:none;color:#285BCC}
    #refund-list a:hover{ color:#FF6600}
    #refund-list .thead td{border-top:1px #ddd solid;border-bottom:1px #ddd solid; background:#f1f1f1; height:25px; text-align:center}
    #refund-list .tbody td{border-bottom:1px #ddd solid; text-align:center; line-height:18px;padding-top:5px;padding-bottom:5px;}
</style>

<div class="content">
    {include file=member.menu.html}
    <div id="right">
        {include file=member.curlocal.html}
        {include file=member.submenu.html}
        <div class="wrap">
            <div class="public table">
                <!--{if $refunds}-->
                <table>
                    <tr class="gray">
                        <th width="80">{$lang.refund_number}</th>
                        <th width="160">{$lang.num_or_infomation}</th>
                        <th width="110">{$lang.buyer}</th>
                        <th width="80">{$lang.deal_total}</th>
                        <th width="80">{$lang.refund_amount}</th>
                        <th width="100">{$lang.apply_date}</th>
                        <th width="100">{$lang.refund_status}</th>
                        <th width="75">{$lang.handle}</th>
                    </tr>
                    <!--{foreach from=$refunds item=refund name=v}-->
                    <tr class="line <!--{if $smarty.foreach.v.last}-->last_line<!--{/if}-->">
                        <td class="align2">{$refund.refund_sn|escape}</td>
                        <td class="align2">{$refund.order_sn|escape}<br /><a href="{url app=goods&id=$refund.goods_id}" target="_blank">{$refund.goods_name}</a></td>
                        <td class="align2">{$refund.user_name|escape}</td>
                        <td class="align2">{$refund.total_fee|price}</td>
                        <td class="align2">{$refund.refund_fee|price}</td>
                        <td class="align2" style="color:gray">{$refund.created|date:Y-m-d H:i:s}</td>
                        <td class="align2" style="color:#FF4F01">
                            {if $refund.status=='CLOSED'}
                            <span style="color:gray">{$lang.refund_colse}</span>
                            {elseif $refund.status=='SUCCESS'}
                            <span style="color:#62B44B">{$lang.refund_succed}</span>
                            {elseif $refund.status=='FAILED'}
                            <span style="color:#FF0000">{$lang.refund_fail}</span>
                            {elseif $refund.status=='WAIT_SELLER_AGREE'}
                            {$lang.buyer_apply_refund}
                            {elseif $refund.status=='SELLER_REFUSE_BUYER'}
                            {$lang.seller_refused_refund}
                            {elseif $refund.status=='WAIT_ADMIN_AGREE'}
                            {$lang.seller_agree_refund}
                            {elseif $refund.status=='WAIT_SELLER_CONFIRM'}
                            {$lang.refund_apply_wait}
                            {/if}	
                            {if $refund.status!='CLOSED' && $refund.status!='SUCCESS' && $refund.status!='FAILED' && $refund.status!='WAIT_ADMIN_AGREE' && $refund.ask_customer==1}<div style="color:#62B44B">（{$lang.customer_has_deal}）</div>{/if}
                        </td>
                        <td class="align2"><a href="{url app=refund&act=view&refund_id=$refund.refund_id}" target="_blank">{$lang.check}</a></td>
                    </tr>
                    <!--{/foreach}-->
                    <tr>
                        <th  colspan="8">
                        <p class="position2">
                            {include file=member.page.bottom.html}
                        </p>
                        </th>
                    </tr>
                </table>
                <!--{else}-->
                <div class="member_no_records">
                    {$lang.no_records}
                </div>
                <!--{/if}-->
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
{include file=footer.html}
